package com.yyt.module_main.vm;

import android.databinding.ObservableField;
import android.os.Bundle;
import android.view.View;

import com.yyt.libsrc.helper.LocalHelper;
import com.yyt.libsrc.router.RouteTable;
import com.yyt.libsrc.router.RouterHelper;

import top.lixb.libcommon.binding.BindingViewModel;

public class IndexVM extends BindingViewModel {
    public ObservableField<String> incomeAmount = new ObservableField<>("0.00");

    /**
     * 消息
     * @param view
     */
    public void goMsgList(View view) {
        RouterHelper.getInstance().startAct(RouteTable.main_msg);
    }

    /**
     * 设置
     * @param view
     */
    public void goSetting(View view){
        RouterHelper.getInstance().startAct(RouteTable.main_sys_setting);
    }

    /**
     * 详细信息
     * @param view
     */
    public void showIncomeDetail(View view) {
        RouterHelper.getInstance().startAct(RouteTable.main_income_list);
    }

    /**
     * 充值订单
     * @param view
     */
    public void goPayorder(View view) {
        RouterHelper.getInstance().startAct(RouteTable.main_payorder);
    }


    /**
     * 申请合伙人
     * @param view
     */
    public void applyPartent(View view) {
        RouterHelper.getInstance().startAct(RouteTable.main_apply_partner);
    }

    /**
     * 会员等级
     * @param view
     */
    public void goUserInfo(View view) {
        RouterHelper.getInstance().startAct(RouteTable.main_user_info);
    }

    /**
     * 邀请码
     * @param view
     */
    public void goInvitaionCode(View view) {
        RouterHelper.getInstance().startAct(RouteTable.main_invitation_code);
    }

    /**
     * 申请合伙人
     * @param view
     */
    public void goApplyPartner(View view) {
        RouterHelper.getInstance().startAct(RouteTable.main_apply_partner);
    }

    /**
     * 提现
     * @param view
     */
    public void goWithdraw(View view) {
        RouterHelper.getInstance().startAct(RouteTable.main_withdraw);
    }

    /**
     * 跳转成员管理
     * @param view
     */
    public void goMemberManage(View view) {

        RouterHelper.getInstance().startAct(RouteTable.main_member_manage);
    }

    /**
     * 立即提现
     * @param view
     */
    public void withdrawnow(View view) {
        RouterHelper.getInstance().startAct(RouteTable.main_withdraw);
    }
}
